import request from '@/utils/request'

// 查询堆垛机列表
export function listStacker(query) {
  return request({
    url: '/equipment/stacker/list',
    method: 'get',
    params: query
  })
}

// 查询堆垛机详细
export function getStacker(stackerId) {
  return request({
    url: '/equipment/stacker/' + stackerId,
    method: 'get'
  })
}

// 新增堆垛机
export function addStacker(data) {
  return request({
    url: '/equipment/stacker',
    method: 'post',
    data: data
  })
}

// 修改堆垛机
export function updateStacker(data) {
  return request({
    url: '/equipment/stacker',
    method: 'put',
    data: data
  })
}

// 删除堆垛机
export function delStacker(stackerId) {
  return request({
    url: '/equipment/stacker/' + stackerId,
    method: 'delete'
  })
}
